var max=0;function AsylumNavLink(parentId,linkId,order,href,linkText,target,width)
{this.linkId=linkId;this.parentId=parentId;this.order=order;this.href=href;this.linkText=linkText;this.target=target;this.width=width;};function AsylumNav(contId,layout,offset)
{this.menuCont=document.getElementById(contId);this.layout=layout;this.offset=(typeof offset=='undefined'?'Right':offset);this.menuItems=new Object();this.clickUnderCreated=false;};AsylumNav.prototype.AddLink=function(parentId,linkId,order,href,linkText,target,width)
{if(typeof this.menuItems[parentId]=='undefined')
{this.menuItems[parentId]=new Object();}
if(typeof width=="undefined")width=false;this.menuItems[parentId][linkId]=new AsylumNavLink(parentId,linkId,order,href,linkText,target,width);if(order>max){max=order;}};AsylumNav.prototype.CreateLevel=function(levelId,idPrefix)
{obj=this;div=document.createElement('div');div.id=idPrefix+levelId;div.levelId=levelId;div.idPrefix=idPrefix;div.className='levelDiv';div.onmouseout=function(e){obj.HideLevel(e);};div.subLevels=new Object();if(levelId!='0')
{div.style.visibility='hidden';div.className+=' subLevel';div.style.position='absolute';}
else
{div.className+=' topLevel';}
if(this.layout=='Horizontal')
{div.style.position='absolute';}
div.style.zIndex=10;if(this.menuCont){this.menuCont.appendChild(div);}
for(i=0;i<=max;i++){for(linkId in this.menuItems[levelId]){if(this.menuItems[levelId][linkId].order==i){linkDiv=document.createElement('div');linkDiv.id='asylumNavLinkDiv'+linkId;linkDiv.linkId=linkId;linkDiv.levelId=levelId;linkDiv.className='linkDiv';if(levelId=="0"){linkDiv.className+=" topLevel";if(this.menuItems[levelId][linkId].width){linkDiv.style.width=this.menuItems[levelId][linkId].width+"px";}}
div.appendChild(linkDiv);navLink=this.menuItems[levelId][linkId];a=document.createElement('a');a.id='asylumNavLink'+linkId;a.linkType='navMenu';a.linkId=linkId;a.levelId=navLink.parentId;a.parentId=navLink.parentId;if(navLink.href==''||navLink.href=='#')
{a.href='#';a.target='';a.style.cursor='default';}
else
{a.href=navLink.href;a.target=navLink.target;}
if(this.layout=='Vertical')
{a.innerHTML=navLink.linkText;}
else
{a.innerHTML=navLink.linkText.split(' ').join('&nbsp;');}
a.onmouseover=function(){obj.ShowLevel(this);};linkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';linkDiv.className+=' activeLink';topLink=this.GetTopLevelLink(navLink);if(typeof this.menuItems[topLink.linkId]!='undefined'&&navLink.levelId!='0')
{try{document.getElementById('asylumNavLink'+topLink.linkId).className+=' activeLink';document.getElementById('asylumNavLinkDiv'+topLink.linkId).className+=' activeLink';}catch(e){}}
if(document.getElementById("clickUnder")!=null)
{this.CreateClickUnder(topLink,true);}}
else
{}
if(typeof this.menuItems[linkId]!='undefined')
{div.subLevels[linkId]=true;}}}}
return div;};AsylumNav.prototype.Construct=function()
{if(this.menuCont==null){return;}
var obj=this;for(levelId in this.menuItems)
{this.CreateLevel(levelId,'asylumNavLevel');}
if(this.layout=='Vertical')
{if(typeof document.getElementById('tplMainSectors')!=null)
{ms=document.getElementById('tplMainSectors');ms.style.height=ms.offsetHeight;}}
else
{this.menuCont.style.height=document.getElementById('asylumNavLevel0').offsetHeight+'px';}
this.CreateBreadCrumbs();};AsylumNav.prototype.CreateClickUnder=function(navLink,active)
{if(typeof doneClickUnder=="undefined"){doneClickUnder=true;}else{return;}
if(document.getElementById("clickUnder")==null)return;obj=this;var linkId;if(this.layout=='Vertical')
{clickDiv=document.createElement('div');clickDiv.id="clickUnder";document.getElementById("clickUnder").appendChild(clickDiv);linkDiv=document.getElementById('asylumNavLinkDiv'+navLink.linkId);linkDiv.appendChild(clickDiv);}
else
{clickDiv=document.getElementById("clickUnder");}
var linkCount=0;for(linkId in this.menuItems[navLink.linkId])
{linkCount++;clickLinkDiv=document.createElement('div');clickLinkDiv.className='clickLinkDiv';clickLink=this.menuItems[navLink.linkId][linkId];txt=document.createTextNode(' ');clickDiv.appendChild(txt);a=document.createElement('a');a.id='asylumNavClickLink'+clickLink.linkId;a.className='clickLink';a.linkType='clickLink';a.linkId=linkId;a.levelId=clickLink.parentId;a.parentId=clickLink.parentId;if(clickLink.href==''||clickLink.href=='#'){a.href='#';a.target='';a.style.cursor='default';}else{a.href=clickLink.href;a.target=clickLink.target;}
if(this.layout=="Vertical"){a.innerHTML=clickLink.linkText;}else if(this.layout=="Horizontal-SubMenu"){if(clickLink.linkText.substring(0,1)==" "){a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}else{a.innerHTML=clickLink.linkText;}}else{a.innerHTML=clickLink.linkText.split(" ").join("&nbsp;");}
a.onmouseover=function(){obj.HideAllLevels();obj.ShowLevel(this);};a.onmouseout=function(e){obj.HideLevel(e);};clickLinkDiv.appendChild(a);if(linkId==pageId)
{a.className='activeLink';clickLinkDiv.className+=' activeLink';}
clickDiv.appendChild(clickLinkDiv);txt=document.createTextNode(' ');clickDiv.appendChild(txt);}
if(linkCount==0||active==false)
{clickDiv.className='inactiveClickUnder';}
else
{clickDiv.className='activeClickUnder';}};AsylumNav.prototype.GetTopLevelLink=function(navLink)
{if(navLink.parentId=='0')
{return(navLink);}
while(1==1)
{navLink=this.GetParentLink(navLink);if(typeof navLink.parentId!='undefined')
{if(navLink.parentId=='0')
{break;}}}
return(navLink);};AsylumNav.prototype.GetParentLink=function(navLink)
{var levelId;var linkId;for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{parNavLink=this.menuItems[levelId][linkId];if(parNavLink.linkId==navLink.parentId)
{return(parNavLink);}}}};AsylumNav.prototype.GetXPos=function(obj)
{var curleft=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
else if(obj.x)
curleft+=obj.x;return curleft;};AsylumNav.prototype.GetYPos=function(obj)
{var curtop=0;if(obj.offsetParent)
{while(obj.offsetParent&&obj.id!='navMenuCont')
{curtop+=obj.offsetTop;obj=obj.offsetParent;}}
else if(obj.y)
curtop+=obj.y;return curtop;};AsylumNav.prototype.ShowLevel=function(el)
{levelId=el.linkId;this.currentLevelId=levelId;window.clearTimeout(this.timeoutId);this.HideSubLevels(el.levelId);if(typeof this.menuItems[levelId]=='undefined')
{return;}
if(el.linkType=='clickLink')
{eP=document.getElementById('asylumNavClickLink'+el.linkId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'subLevel','clickUnderSubLevel');}
else
{eP=document.getElementById('asylumNavLink'+levelId);eL=document.getElementById('asylumNavLevel'+levelId);SwapClass(eL,'clickUnderSubLevel','subLevel');}
if(eP.parentId=='0')
{switch(this.offset)
{case'Right':offsetX=(eP.offsetWidth);offsetY=0;break;case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;case'Bottom':offsetX=0;offsetY=eP.offsetHeight;eL.style.minWidth=eP.offsetWidth;break;}}
else
{switch(this.offset)
{case'Left':offsetX=(-eL.offsetWidth);offsetY=0;break;default:offsetX=(eP.offsetWidth);offsetY=0;break;}}
pX=this.GetXPos(eP);pY=this.GetYPos(eP);lX=pX+offsetX;lY=pY+offsetY;eL.style.position='absolute';$(eL).css({left:lX,top:lY});eL.style.visibility='visible';};AsylumNav.prototype.GetLevelWidth=function(levelId)
{maxWidth=0;for(linkId in this.menuItems[levelId])
{a=document.getElementById('asylumNavLink'+linkId);thisWidth=a.offsetWidth;if(thisWidth>maxWidth)
{maxWidth=thisWidth;}}
return(maxWidth);};AsylumNav.prototype.HideSubLevels=function(levelId,omitLevelId)
{if(typeof omitLevelId=='undefined')
{omitLevelId='0';}
eL=document.getElementById('asylumNavLevel'+levelId);for(levelId in eL.subLevels)
{this.HideSubLevels(levelId);if(levelId!=omitLevelId)
{eL=document.getElementById('asylumNavLevel'+levelId);eL.style.visibility='hidden';}}};AsylumNav.prototype.HideLevel=function(e)
{window.clearTimeout(this.timeoutId);if(!e)e=window.event;var el=(e.relatedTarget)?e.relatedTarget:e.toElement;var obj=this;var funct=function(){obj._HideLevel(el);};this.timeoutId=window.setTimeout(funct,1000);};AsylumNav.prototype._HideLevel=function(el)
{if(!el||el.id.substr(0,9)!='asylumNav'||(el.id.substr(0,9)=='asylumNav'&&el.style.visibility=='hidden'))
{this.HideAllLevels();}};AsylumNav.prototype.HideAllLevels=function()
{for(levelId in this.menuItems)
{if(levelId!='0')
{eL=document.getElementById('asylumNavLevel'+levelId);if(eL!=null)eL.style.visibility='hidden';}}};AsylumNav.prototype.CreateBreadCrumbs=function()
{if(document.getElementById("breadCrumbs")!=null)
{crumbsCont=document.getElementById("breadCrumbs");crumbsCont.style.display='none';crumbs='';homeLink='';for(levelId in this.menuItems)
{for(linkId in this.menuItems[levelId])
{navLink=this.menuItems[levelId][linkId];if(homeLink=='')
{homeLink='<a href="'+navLink.href+'" target="'+navLink.target+'">'
+navLink.linkText+'</a> &gt; ';}
if(linkId==pageId)
{i=0;parNavLink=this.GetParentLink(navLink);while(typeof parNavLink=='object')
{i++;crumbs='<a href="'+parNavLink.href+'" target="'+parNavLink.target+'">'
+parNavLink.linkText+'</a> &gt; '+crumbs;parNavLink=this.GetParentLink(parNavLink);}
if(i>1)
{crumbsCont.style.display='block';crumbsCont.innerHTML=homeLink+crumbs+'<span class="activeCrumb">'+navLink.linkText+'</span>';}
return(true);}}}}};function RemoveClass(el,className)
{var replaceName=(el.className.match(' '+className)?' '+className:className);el.className=el.className.replace(replaceName,'');};function AddClass(el,className)
{RemoveClass(el,className);el.className+=' '+className;};function SwapClass(el,removeClassName,addClassName)
{RemoveClass(el,removeClassName);AddClass(el,addClassName);};;$(function() {for (var i in tasks) {window.setTimeout(tasks[i], 0);}});function initMenu(){};$(function(){$("#navMenu").navmenu({pageInfo:{"a110254":{"P":0,"ID":562493,"C":110254,"O":0,"U":"http:\/\/www.bigstarbranding.com\/","N":"Home","T":"_top","R":"","RT":"_blank"},"a501964":{"P":110254,"ID":559624,"C":501964,"O":"1","U":"http:\/\/www.bigstarbranding.com\/special-offers.html","N":"Special Offers","T":"_top","R":"","RT":"_blank"},"a438848":{"P":501964,"ID":442927,"C":438848,"O":"1","U":"http:\/\/www.bigstarbranding.com\/family-reunion-shirt.html","N":"Family Reunion T Shirts","T":"_top","R":"","RT":"_blank"},"a437185":{"P":501964,"ID":559640,"C":437185,"O":"3","U":"http:\/\/www.bigstarbranding.com\/field-day-tshirts.html","N":"Field Day","T":"_top","R":"","RT":"_blank"},"a589029":{"P":501964,"ID":589054,"C":589029,"O":"4","U":"http:\/\/www.bigstarbranding.com\/our-latest-ads.html","N":"Our Latest Ads","T":"_top","R":"","RT":"_blank"},"a464830":{"P":110254,"ID":559658,"C":464830,"O":"2","U":"http:\/\/www.bigstarbranding.com\/t-shirts-screen-printed.html","N":"Custom T-Shirts","T":"_top","R":"","RT":"_blank"},"a133858":{"P":464830,"ID":559672,"C":133858,"O":"1","U":"http:\/\/www.bigstarbranding.com\/screen-printing-t-shirts-design-san-antonio.html","N":"Design Services","T":"_top","R":"","RT":"_blank"},"a204092":{"P":464830,"ID":559676,"C":204092,"O":"2","U":"http:\/\/www.bigstarbranding.com\/screen-printed-tee.html","N":"Screen Printing Ink Colors","T":"_top","R":"","RT":"_blank"},"a204100":{"P":464830,"ID":559678,"C":204100,"O":"3","U":"http:\/\/www.bigstarbranding.com\/screen-printer-san.html","N":"Screen Printing Locations","T":"_top","R":"","RT":"_blank"},"a204106":{"P":464830,"ID":559680,"C":204106,"O":"4","U":"http:\/\/www.bigstarbranding.com\/screen-printing-stock.html","N":"Screen Printing Stock Fonts","T":"_top","R":"","RT":"_blank"},"a208502":{"P":464830,"ID":559682,"C":208502,"O":"5","U":"http:\/\/www.bigstarbranding.com\/screen-printing-process.html","N":"Screen Printing Process","T":"_top","R":"","RT":"_blank"},"a484730":{"P":464830,"ID":559699,"C":484730,"O":"6","U":"http:\/\/www.bigstarbranding.com\/school-spirit-templates.html","N":"School Spirit Templates","T":"_top","R":"","RT":"_blank"},"a484747":{"P":110254,"ID":559741,"C":484747,"O":"3","U":"http:\/\/www.bigstarbranding.com\/embroidered-wearables-polo-oxford-twills-shirts-san-antonio.html","N":"Embroidered Apparel","T":"_top","R":"","RT":"_blank"},"a209279":{"P":484747,"ID":559768,"C":209279,"O":"2","U":"http:\/\/www.bigstarbranding.com\/embroidery-process.html","N":"Embroidery Process","T":"_top","R":"","RT":"_blank"},"a445560":{"P":110254,"ID":559802,"C":445560,"O":"4","U":"http:\/\/www.bigstarbranding.com\/schools","N":"Schools","T":"_top","R":"","RT":"_blank"},"a448053":{"P":445560,"ID":559851,"C":448053,"O":"1","U":"http:\/\/www.bigstarbranding.com\/mascot-central.html","N":"Mascot Central","T":"_top","R":"","RT":"_blank"},"a447038":{"P":445560,"ID":559883,"C":447038,"O":"2","U":"http:\/\/www.bigstarbranding.com\/school-spirit-template.html","N":"School Spirit Templates","T":"_top","R":"","RT":"_blank"},"a446974":{"P":445560,"ID":559900,"C":446974,"O":"3","U":"http:\/\/www.bigstarbranding.com\/school-spirit-catalog.html","N":"School Spirit Catalog","T":"_top","R":"","RT":"_blank"},"a445595":{"P":445560,"ID":559902,"C":445595,"O":"4","U":"http:\/\/www.bigstarbranding.com\/school-order-form.html","N":"School Spirit Order From","T":"_top","R":"","RT":"_blank"},"a408077":{"P":110254,"ID":408080,"C":408077,"O":"5","U":"http:\/\/www.bigstarbranding.com\/car-wrap-promotional.html","N":"Vehicle Wraps","T":"_top","R":"","RT":"_blank"},"a426370":{"P":408077,"ID":561322,"C":426370,"O":"1","U":"http:\/\/www.bigstarbranding.com\/Vehicle-Wrap-Quote.html","N":"Vehicle Wrap Quote","T":"_top","R":"","RT":"_blank"},"a605711":{"P":408077,"ID":605712,"C":605711,"O":"2","U":"http:\/\/www.bigstarbranding.com\/vinyl-banners.html","N":"Vinyl Banners","T":"_top","R":"","RT":"_blank"},"a134321":{"P":110254,"ID":560691,"C":134321,"O":"6","U":"http:\/\/www.bigstarbranding.com\/promotional-products-advertising-specialties-san-antonio.html","N":"Promotional Products","T":"_top","R":"","RT":"_blank"},"a213195":{"P":134321,"ID":213204,"C":213195,"O":"1","U":"http:\/\/www.bigstarbranding.com\/embroidery-screen-printing.html","N":"Our Favorite Catalogs","T":"_top","R":"","RT":"_blank"},"a354148":{"P":134321,"ID":354151,"C":354148,"O":"2","U":"http:\/\/www.bigstarbranding.com\/tradeshow-products.html","N":"Tradeshow Products","T":"_top","R":"","RT":"_blank"},"a134326":{"P":110254,"ID":559551,"C":134326,"O":"7","U":"http:\/\/www.bigstarbranding.com\/uniforms-overalls-coveralls-work-clothes-san-antonio.html","N":"Uniforms","T":"_top","R":"","RT":"_blank"},"a110258":{"P":110254,"ID":132779,"C":110258,"O":"8","U":"http:\/\/www.bigstarbranding.com\/gsa-approved-promo-items-government-military-san-antonio.html","N":"Gov't","T":"_top","R":"","RT":"_blank"},"a341341":{"P":110258,"ID":355706,"C":341341,"O":"1","U":"http:\/\/www.bigstarbranding.com\/government-samples.html","N":"Government Samples","T":"_top","R":"","RT":"_blank"},"a194814":{"P":110254,"ID":194815,"C":194814,"O":"9","U":"http:\/\/www.bigstarbranding.com\/big-star-branding.html","N":"Contact","T":"_top","R":"","RT":"_blank"},"a204115":{"P":194814,"ID":559555,"C":204115,"O":"1","U":"http:\/\/www.bigstarbranding.com\/order_now.html","N":"How to Order","T":"_top","R":"","RT":"_blank"},"a110259":{"P":194814,"ID":132769,"C":110259,"O":"2","U":"http:\/\/www.bigstarbranding.com\/screen-printing-embroidery-GSA-HUB-san-antonio.html","N":"About Us","T":"_top","R":"","RT":"_blank"},"a133383":{"P":110259,"ID":133384,"C":133383,"O":"1","U":"http:\/\/www.bigstarbranding.com\/san-antonio-screen-printing-embroidery-uniforms-GSA-HUB.html","N":"Onsite Graphic Arts","T":"_top","R":"","RT":"_blank"},"a133393":{"P":110259,"ID":133403,"C":133393,"O":"2","U":"http:\/\/www.bigstarbranding.com\/gsa-approved-hub-certified-screen-printing-san-antonio.html","N":"FAQ's","T":"_top","R":"","RT":"_blank"},"a204114":{"P":110259,"ID":204205,"C":204114,"O":"3","U":"http:\/\/www.bigstarbranding.com\/privacy_policy.html","N":"Privacy Policy","T":"_top","R":"","RT":"_blank"},"a351480":{"P":110259,"ID":355464,"C":351480,"O":"4","U":"http:\/\/www.bigstarbranding.com\/community-involvement.html","N":"Community Involvement","T":"_top","R":"","RT":"_blank"},"a407755":{"P":110254,"ID":407756,"C":407755,"O":"12","U":"http:\/\/www.promoplace.com\/ws\/ws.dll\/Search?DistID=6847","N":"Your Cart","T":"_top","R":"http:\/\/www.promoplace.com\/ws\/ws.dll\/Search?DistID=6847","RT":"_top"}},alignment:"Horizontal",animate:0})});var imgSrc={};